package org.tuoren.official.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.tuoren.common.excel.annotation.ExcelDictFormat;
import org.tuoren.common.excel.convert.ExcelDictConvert;
import org.tuoren.official.domain.TInnovationAchievementDetail;

import java.io.Serial;
import java.io.Serializable;



/**
 * 研究成果列视图对象 t_innovation_achievement_detail
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TInnovationAchievementDetail.class)
public class TInnovationAchievementDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 成果名称
     */
    @ExcelProperty(value = "成果名称")
    private String name;

    /**
     * 成果封面图
     */
    @ExcelProperty(value = "成果封面图")
    private String coverUrl;

    /**
     * 成果图片
     */
    @ExcelProperty(value = "成果图片")
    private String photoUrl;

    /**
     * 成果介绍
     */
    @ExcelProperty(value = "成果介绍")
    private String achievementIntroduce;

    /**
     * 专利号
     */
    @ExcelProperty(value = "专利号")
    private String patentNo;

    /**
     * 发明人
     */
    @ExcelProperty(value = "发明人")
    private String inventor;

    /**
     * 工作单位
     */
    @ExcelProperty(value = "工作单位")
    private String workUnit;

    /**
     * 应用科室
     */
    @ExcelProperty(value = "应用科室")
    private String userDepartment;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    @ExcelProperty(value = "是否发布", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=：否；1：是")
    private String isPublish;

}
